package test_kevin;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class ImageJPanel extends JPanel {
    public ImageJPanel(BufferedImage bi) {
      myImage = bi;
    }
@Override
public void paintComponent(Graphics g) {
    g.drawImage(myImage, 0, 0, null);
}

private BufferedImage myImage;}